Skip to content

chore: leftover peers, docs, and CI after the proxy-bypass fix - #80

Draft
proxymeshai wants to merge 4 commits into
cursor/vulnerability-agent-memory-9801from
cursor/fix-undici-tunnel-and-ci-1ad0
Draft

proxymeshai wants to merge 4 commits into
cursor/vulnerability-agent-memory-9801from
cursor/fix-undici-tunnel-and-ci-1ad0

Conversation

@proxymeshai

@proxymeshai proxymeshai commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Recommendation: close this PR

The proxy-bypass fix is #82. The ky 2.2.0 fix already merged in #81. This branch has two merge commits (no force-push): first the security branch, then that branch again after it included main. The competing undici connector and the larger ky wrapper are gone. The PR base is cursor/vulnerability-agent-memory-9801, so the diff is only what that branch does not already contain.

Do not merge this into the security branch or into main.

What remains

  • Peers and engines (package.json, lockfile metadata): got 15/16, undici 8, make-fetch-happen 15/16, typed-rest-client 3, and ky 1, plus engines.node >=22.19.0. The peer widen matches majors already in devDependencies and is a reasonable small follow-up on its own. The engines bump drops Node 18 and 20 and should not ship inside this bundle.
  • CI (.github/workflows/ci.yml, latest-clients.yml): Node 22 and 24 unit, types, and local-mock jobs, plus a weekly latest-client run. ubuntu-24.04 only, actions pinned by SHA. The existing proxy integration workflow already runs npm run test:unit on pull requests.
  • Docs and metadata: await on async factory examples, npm description and keywords, README links.
  • tsconfig: drop baseUrl and ignoreDeprecations. tsc --noEmit passes. Not required for fix: keep undici and got requests on the configured proxy #82.
  • node-fetch tlsOptions and JSDoc-only await notes on axios, got, and superagent.
  • Local proxy tests (test/mock-connect-proxy.js, test/test_proxy_traversal.js, test/local-mock-integration.js): byte-level tunnel checks. The undici HTTPS case uses tlsOptions, matching fix: keep undici and got requests on the configured proxy #82. The ky case uses the adapter that shipped in chore(deps-dev): Bump the dev-minor-patch group with 2 updates #81. Plain HTTP still does not forward custom undici proxy headers; the test that required that was removed with the old connector.

Order

  1. Merge fix: keep undici and got requests on the configured proxy #82 (security). It is up to date with main and its diff is only the undici/got fix.
  2. chore(deps-dev): Bump the dev-minor-patch group with 2 updates #81 has already merged (auto-merge was already enabled).
  3. Close this PR. If the peer ranges are still wanted, do that as a separate change without the engines bump or the rest of this bundle.
Open in Web Open in Cursor 

cursoragent and others added 2 commits October 23, 2026 03:59
HTTPS requests passed an open tunnel socket as undici connect.socket, which
the default connector replaces with a direct dial, leaking the client IP.
Use a custom connector on ProxyHeadersAgent and fail tests unless the mock
proxy sees CONNECT and tunneled bytes. Also accept ky 2.2 Responses, widen
peer ranges through the versions we test, require Node >= 22.19, and add
unit, type, and latest-client workflows.

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.com>
…-undici-tunnel-and-ci-1ad0

Keep that branch's undici and got proxy-bypass fix. Drop the alternate
undici connector. The traversal test now passes tlsOptions, and the
plain-HTTP ProxyAgent header case is removed because this adapter does
not forward custom proxy headers on http://.

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.com>
@cursor cursor Bot changed the title Fix the undici proxy bypass and align clients, types, and CI chore: leftover peers, docs, and CI after the proxy-bypass fix Nov 1, 2026
@cursor
cursor Bot changed the base branch from main to cursor/vulnerability-agent-memory-9801 November 1, 2026 19:30
cursoragent and others added 2 commits November 1, 2026 19:32
…-undici-tunnel-and-ci-1ad0

Bring in main, including the ky 2.2 Response wrapper that already merged.
Keep that wrapper instead of the larger ky 1 path. The traversal test
accepts the local origin certificate without a ky tlsOptions option.

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.com>
…-undici-tunnel-and-ci-1ad0

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants